﻿#region

using System.Collections.Generic;
using BusinessObjects;
using DataAccessLayer;

#endregion

namespace BusinessLogicLayer
{
    public static class DistrictBLL
    {
        /// <summary>
        ///     Get All districts
        /// </summary>
        /// <returns>All available districts</returns>
        public static List<District> GetAllDistricts()
        {
            return DistrictDAL.GetAllDistricts();
        }

        /// <summary>
        ///     Get district name by district id
        /// </summary>
        /// <param name="districtId">Represent's the district Id</param>
        /// <returns>District name</returns>
        public static string GetDistrict(byte districtId)
        {
            return DistrictDAL.GetDistrict(districtId);
        }
    }
}